import { NodeRoot } from "../Base/NodeRoot";
import { NMNode } from "../Base/NodeGraph";
@NMNode
export class SetScale extends NodeRoot{
    public Node: any;
    public Scale;
    private setNode:cc.Node;

    onEnter(){
        this.setNode=this.Node;
        if(!this.setNode){
            this.setNode=this.ownerNode;
        }
        this.setNode.setScale(cc.v2(this.Scale.x,this.Scale.y));
    }
}